---
title: "SQL-015: Retrieve award benefit payments by benefit type"
summary: Retrieve award benefit payments by benefit type
status: draft
owner: SAIF Documentation Generator
last_reviewed: 2026-08-21
library: SAIF.Business.Claim
reference_type: embedded
---

# SQL-015 Retrieve award benefit payments by benefit type

Retrieves benefit-payment rows for an award, filtered by a dynamically built IN-list of benefit-type codes (defaulting to '4','5','6').

## Classification



| Field | Value |
| --- | --- |
| **SQL ID** | SQL-015 |
| **Operation type** | Read |
| **Execution method** | Inline SQL (fragment + dynamic IN-list) |
| **Database** | Oracle |
| **Schema** | `[unqualified]**` |
| **Command type** | Text |
| **Business object** | `clsAwardBenefitPaymentCollection` |
| **Criteria property** | `RetrieveSQL` |
| **Lifecycle method** | `BeforeRetrieve` |

## Parameters



| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `ClaimID` | Input | Decimal | — | Claim identifier |
| `AwardNum` | Input | Decimal | — | SAIF award number |
| `BenefitTypeCode1..N` | Input | String | 5 | Dynamically appended IN-list; defaults to '4', '5', '6' when the criteria supplies no codes |

## Tables



| Table | Access | Columns used |
| --- | --- | --- |
| [CL_BENEFIT_PAYMENT](../database-tables.md#cl_benefit_payment) | SELECT | CLAIM_ID, SAIF_AWARD_NUM, BENEFIT_TYPE_CODE |

## Sample SQL

```sql
-- Retrieve award benefit payments by benefit type (completed statement)
Select CL_BENEFIT_PAYMENT.*
  From CL_BENEFIT_PAYMENT
 Where CL_BENEFIT_PAYMENT.CLAIM_ID = :ClaimID
   AND CL_BENEFIT_PAYMENT.SAIF_AWARD_NUM = :AwardNum
   AND CL_BENEFIT_PAYMENT.BENEFIT_TYPE_CODE in (:BenefitTypeCode1,
                                                :BenefitTypeCode2,
                                                :BenefitTypeCode3)
```

## Sources
- SAIF.Business.Claim/clsAwardBenefitPaymentCollection.vb
